<?php

use Phinx\Migration\AbstractMigration;

class AddIsReviewedColumnInSettlementTable extends AbstractMigration
{
    public function up()
    {
        $this->table("settlement")->addColumn("is_reviewed", 'enum', [
            'values' => 'default,yes,no',
            'default' => 'default',
            'comment' => '结算审核状态',
        ])->save();
    }

    public function down()
    {
        $this->table("settlement")->removeColumn("is_reviewed")->save();

    }
}
